object RestoreFrm: TRestoreFrm
  Left = 261
  Top = 143
  BorderIcons = []
  BorderStyle = bsDialog
  Caption = #25968#25454#24674#22797
  ClientHeight = 406
  ClientWidth = 536
  Color = clBtnFace
  Font.Charset = GB2312_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = #23435#20307
  Font.Style = []
  OldCreateOrder = True
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 12
  object grpMain: TRzGroupBox
    Left = 8
    Top = 69
    Width = 542
    Height = 287
    TabOrder = 0
    object Label1: TLabel
      Left = 26
      Top = 17
      Width = 100
      Height = 12
      AutoSize = False
      Caption = #25991#20214#21517
    end
    object Label4: TLabel
      Left = 26
      Top = 43
      Width = 76
      Height = 12
      AutoSize = False
      Caption = #24674#22797#36827#24230
    end
    object Label5: TLabel
      Left = 26
      Top = 70
      Width = 76
      Height = 12
      AutoSize = False
      Caption = #35814#32454#20449#24687
    end
    object lblInfo: TLabel
      Left = 140
      Top = 70
      Width = 6
      Height = 12
    end
    object Label3: TLabel
      Left = 27
      Top = 96
      Width = 96
      Height = 12
      Caption = #26368#36817#22791#20221#21382#21490#35760#24405
    end
    object edtbtnBackupFile: TRzButtonEdit
      Left = 140
      Top = 15
      Width = 382
      Height = 20
      ReadOnly = True
      TabOrder = 0
      AllowKeyEdit = False
      AltBtnKind = bkFolder
      AltBtnWidth = 18
      ButtonWidth = 18
      OnButtonClick = edtbtnBackupFileButtonClick
    end
    object prgFile: TProgressBar
      Left = 140
      Top = 41
      Width = 382
      Height = 17
      Align = alCustom
      TabOrder = 1
    end
    object lvLog: TRzStringGrid
      Left = 28
      Top = 112
      Width = 493
      Height = 167
      ColCount = 2
      FixedColor = clInactiveCaptionText
      FixedCols = 0
      RowCount = 11
      Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goColSizing, goRowSelect, goThumbTracking]
      TabOrder = 2
      OnSelectCell = lvLogSelectCell
      FrameColor = 12164479
      FrameVisible = True
      FixedLineColor = 12164479
      LineColor = clInactiveCaption
      ColWidths = (
        381
        88)
    end
  end
  object Panel1: TPanel
    Left = 0
    Top = 0
    Width = 536
    Height = 62
    Align = alTop
    BevelOuter = bvNone
    Color = clWhite
    TabOrder = 1
    object Label2: TLabel
      Left = 11
      Top = 14
      Width = 68
      Height = 17
      Caption = #24674#22797#25968#25454
      Font.Charset = GB2312_CHARSET
      Font.Color = clNavy
      Font.Height = -17
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
    end
    object Image1: TImage
      Left = 481
      Top = 0
      Width = 55
      Height = 62
      Align = alRight
      Center = True
      Picture.Data = {
        0A544A504547496D616765110A0000FFD8FFE000104A46494600010100000100
        010000FFFE0032436F6D707265737365642077697468204A504547204F707469
        6D697A657220332E31302C207777772E7861742E636F6DFFDB00430005030404
        04030504040405050506070C08070707070F0B0B090C110F1212110F11111316
        1C1713141A1511111821181A1D1D1F1F1F13172224221E241C1E1F1EFFDB0043
        010505050706070E08080E1E1411141E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E
        1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E
        1EFFC00011080053004003012200021101031101FFC4001C0000020301010101
        000000000000000000060700040503080201FFC400401000010302040305020A
        0905010000000001020304051100061221071331142223415161E31832334243
        5681A5B1D30816346263728391A315172652C1C3FFC4001A0100020301010000
        00000000000000000003050002040106FFC4002E110002020103010409050000
        000000000001020003110412214113315191051432526171A1B1F02281C1E1F1
        FFDA000C03010002110311003F00F50E70AF3915C5D3A1496E2B8DB41E972D41
        2AECCD92424241D8B8A20E9076D893D2C51F98334E59952DF4CACAB43AE045FC
        7AF2113DD52BD6EB72C8FE54803D3138A19815332F52DF0EF2D75E2BABB9E280
        4B6A3A1848EFA4D83481ECBDCE17487BC370769B6A1D79DEFB0FF43A44500BF5
        8B7557BE1B61C60819840DE62CB2A20FFB5FC3108F3FF8F47BFD9E2E0819AC70
        E1F6D2DC6E17643992D62C969AA1451DEF692AD8617BCE360D224778EDF2DEFB
        16644FE4A395164A81E8A587AC49F659EE9836CAD9738C78727990BDA1C283D3
        9F8461D58E45A550B9CFF0E386EED40EDA5BA1470DA49F9BBAB72075DF19F95E
        4659AE4D3199E1570E0A5B415BAB4E5E8F64A40BF93871563D16A198043851A4
        D966DBEB51DC8B1D83B8CAACCFA745A747A653172E3CC8AFBA25BCA923C43D36
        B3A0DB6E9E580DCA949249CFEF094D8F680043ECB55EC98DD31DA844CAF48CB2
        636AD6BA2A9A84F2D5E49406D402CF9D960A70D5E1FE6945623B2C3D293294F3
        45E892804A7B421240585006C1C4120280DB70475B0F26A25A9B706893E9BF3B
        DF61CBC381538196555294C38CA60CE8F3A3294B1BA0AC3522DDF5129E52C9F4
        BD8E0176995E8161E0FC645B996EECCF20FD3E700737B84658E1D8E768BE4BA6
        1B7334EE5B57EFA7F0C0CF68D82FB45EC771CEF7D827CDAB032AF0F073341FD4
        AA61B7334FD1ABCB5A7F0C0C073413791607F8DEFB1A6870D904FE665ED1B064
        09D5B7B4214EF68BA8EDF2DD2FFD6C5DA3C6321FED2B7AD1D9235ACBC748B9B0
        B9E6FA9C7CD38A090B2A71E41EBE3580DBD79B8D8765545C80EC1650D3119F65
        087521D0AB94AB5155C3B718D5729521939C0EEFE62FA5C9DCAFD4F27AFCA5FC
        D95C6A0477E83196E353A2CD4284D664800A529BD87880DF51C0448984AD5793
        A96ADD4A2F6E49373F4D8B72DB7A311AD6A08500A3778DC03D2FE36C714EE6FF
        00B47F9BDF6175401B09B7BC46647E8C5739072FB768FF0037BEC30785EFBAE4
        1CD4DAE4B8EA534274A52A78AC0EFA3A02B55B008876C6FDA3A7F1BDF60EB85A
        A2A839B4F3358143785B99ABE7A7CB98AC1750FB811E12A8A17199959B5C28CA
        DC3B01CD17C954CDB99A7E8D5E5AD3F862AD2E9322402E2DDB69F8C56F1086BD
        3559DDCFEE8C13B9092EE58E1F4B7DEE532CE4BA66A2565363CB3D06B009FB31
        89982B05C68478AF25A415F2D96D2EF407A9279BB9F6E3B450101B5B93CE3CFE
        F057DE5DBB35E07E7D2736C531C97D99C92FCB523E32D320A1A07D000E637452
        21A101C8B21C86EA6C43A2428A3ED05CE98E1120F6284D21C77BCAB5C734FC63
        FD4C7CB4C48CC51A6CDED898B4B820A1256F14A5D700F321DB62FDB8F68F8E25
        DF49B48407A027E199B12201A9D2B97A1464A5679894BDA1B4AEDBBAB3CCB916
        E830B698B31DF29126E9B917E76C6C7AFCB61919483B272935CD5B8EF350A469
        0F105490ADB7E67FEE0233015B5324B2EC86DA5020E843DB0F403C5C56E416D6
        C7A8E440D4E6BB00E866629F07A4848FEB7BEC1C70BC5E9D9A9D0EF302A86F01
        DFD5D168FDF5600F9F6B0323CC7D37BEC1C70BDDD6C66B6F9DAED417884F3750
        1DF4796B57E18C096E5486E7BBEF373A92410657CCD517D9C9FC388887B4B7FA
        9F4D70A7584DC96C8FFBA7D3D314A96C3B22AEC48D2FC88EC9257CA5956FE5B0
        771B13A097B2CF0EE5495B8DC46B2653004A57A54F2CB6AEE27BE05EDB936D86
        3F5E9F5168B6BA655FB2A991A90C47504B6DA41DCAAEE6E3D49C31A9B7D4500E
        BE5CCC56284BB79FF670ACD496EC79721B97A5C8EDAAECEBB2DB276DC733AEF8
        249A1C83C3DA365B84CC496BAB3416EB8A7AEB649B28AADCCBF9FAE26692CCD9
        1957310533AAAA95C39C1B5D9B79407C603581F8E33EA956839651E0A5B5CA56
        C841787C51B5CDDCE9816C57DAC0600E9086D71B83725BAFF50A22406E2C06A2
        A1E506996826E166F603F9F0ACABAD06AF29B849710800F71D7AE7DAAF95C1BE
        50CE0AAF4394D9E53525A1B10E8D241F3D9CC04D61D26A72D73EA292BB101487
        6C09F21F2B8351C82602D232261B8A3A7F68B122E3C6F7D834E15AF98C66E5F3
        755E82EF7799A88B2D3FC4560390F05A0DA4A750E89E75C927D3C6C19F0B55AE
        2E6CF1359FF427AE399ABE7A3CB5ABF0C2DB6828436388C15C30C09D3362AA34
        BCB9919842D684C3A1B74C537AAC03D1D45A736D69DEE079633E44E53C4B6642
        74367C45A5ED9D581BFD27C51D2DEBBE1D39F68859726B48525A62A2EF6886FA
        B643130A420A09B8B25CB248DC0D77F350C282AF46AC41A8B1444C67D971F586
        14972E0EE6DA812E7DB832EA03D41071269EB5AED6B9F9F010B5B6D3228F9422
        BAEE9E517A72BC5F983607E3F4FEF85366BAAAA755243DDA3671C3A7C6E8906C
        3A3D86CC890DB926733156A2C448E8A5465EBEBA477D43BFEB85D1CAB575CF0C
        3BA9B6C1DD65D36B5FAFCAE2D656E6A0883BE66ED835AD6319672208CCD2264B
        9D314D36E771043C7F1E69C66BAF96DB7F92AE6B4B360B53D7B7F7770555D931
        E914B6E98DC752921160E177CFD777302121F78252D8969D0ADF487BDF619E9E
        B08A17C22DD439249F195621589216D4850524F5E75FFF00B618BC3C82B4D3B3
        03885A97DA62B34F035950D72242103E7AB19994A8732A2EA530DA7642CED642
        8ABED36730E1C8D4443B221B2DD9C874C78C890F2544A5F97A4A12806E6E96C1
        55F7B6BB79A4E306BF503D9119E929D9582DDF1852D862545723C965B7D97125
        2B6DC48525408E841D88C794BF4A3E20E72E16D558A7E46AEBF4B8AB483CA710
        89494FB13CE0BD23D89B01E989898C3E8D50F785619135988EF84DF1C3EBBFDD
        50FF002713E137C70FAEFF007543FC9C4C4C7A7F54A3DC1E42564F84DF1C3EBB
        FDD50FF2713E137C70FAEFF7543FC9C4C4C4F54A3DC1E4248F1FD1738839CB8A
        5527E0E7AAEBF548A8B9E521088C957B141908D49F62AE0FA63D5B098623456E
        3C665B6596D21286DB484A5200E800D80C4C4C798F49284B8AA8C09D5EE9FFD9}
      Stretch = True
    end
  end
  object Panel2: TPanel
    Left = 0
    Top = 62
    Width = 536
    Height = 5
    Align = alTop
    Color = 33023
    TabOrder = 2
  end
  object dlgbtnMain: TRzDialogButtons
    Left = 0
    Top = 370
    Width = 536
    ActionOk = acRestore
    ActionCancel = acClose
    CaptionOk = #24674#22797#25968#25454
    CaptionCancel = #20851#38381
    CaptionHelp = '&Help'
    WidthOk = 81
    WidthCancel = 81
    WidthHelp = 81
    TabOrder = 3
  end
  object zipBackup: TVCLZip
    Left = 136
    Top = 296
  end
  object SQLDMORstrSink: TSQLDMORestoreSink
    PercentComplete = SQLDMORstrSinkPercentComplete
    Left = 184
    Top = 296
  end
  object pndlgFile: TOpenDialog
    DefaultExt = 'DBK'
    Filter = #25968#25454#22791#20221'(*.DBK)|*.DBK|'#25152#26377#25991#20214'(*.*)|*.*'
    InitialDir = 'C:\'
    Options = [ofOverwritePrompt, ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofNoLongNames, ofEnableSizing]
    Left = 216
    Top = 112
  end
  object spKillP: TADOStoredProc
    Connection = DMMain.cnBackup
    ProcedureName = 'spKillDBProcese;1'
    Parameters = <
      item
        Name = '@RETURN_VALUE'
        DataType = ftInteger
        Direction = pdReturnValue
        Precision = 10
        Value = Null
      end
      item
        Name = '@dName'
        Attributes = [paNullable]
        DataType = ftWideString
        Size = 50
        Value = Null
      end>
    Left = 216
    Top = 256
  end
  object actList: TActionList
    Left = 264
    Top = 272
    object acRestore: TAction
      Caption = #22791#20221#25968#25454
      OnExecute = acRestoreExecute
    end
    object acClose: TAction
      Caption = #20851#38381
      OnExecute = acCloseExecute
    end
  end
  object qryKillP: TADOQuery
    Connection = DMMain.cnBackup
    Parameters = <
      item
        Name = '@dName'
        DataType = ftWideString
        Size = 50
        Value = Null
      end>
    SQL.Strings = (
      'declare @spID int'
      'declare @strSQL nvarchar(200)'
      ''
      'SET NOCOUNT ON'
      ''
      #9'DECLARE cur_spID CURSOR'
      
        '  '#9#9'FOR select a.spid from master..sysprocesses a inner join mas' +
        'ter..sysdatabases b on a.dbID=b.dbID and b.name=:@dName '
      #9'OPEN cur_spID'
      ''
      #9'fetch next from cur_spID into @spID'
      #9
      #9'WHILE @@FETCH_STATUS = 0'
      #9'begin'
      #9#9'select @strSQL='#39'kill '#39'+cast(@spID as nvarchar(10))--????'
      #9#9'exec (@strSQL)'
      #9#9'fetch next from cur_spID into @spID'
      #9'end'
      #9'close cur_spID'
      #9'DEALLOCATE cur_spID'
      'set nocount off'
      ''
      'SET QUOTED_IDENTIFIER OFF '
      ''
      'SET ANSI_NULLS ON '
      '')
    Left = 320
    Top = 277
  end
end
